//统一管理项目中的网络请求
import service from './request'

//首页列表
export function index_nav( params = {} ){
    return service.get('/index/nav' , {params} );
}
//推荐列表
export function index_goodlist( params = {} ){
    return service.get('/index/goodlist' , {params} );
}
//一级分类
export function category_list( params = {} ){
    return service.get('/category/list' , {params} );
}
//二级分类
export function category_subcate( params = {} ){
    return service.get('/category/subcate' , {params});
}
//登录
export function user_login( params = {}){
    return service.post('user/login',params );
}
//注册
export function user_register(params = {}){
    return service.post('user/register',params);
}
